import request from "@/utils/request";
const BASE_URL = "admin";

//查
export const queryPatientInfo = (params) =>
    request.get(`${BASE_URL}/patient/info`, { params });

//编辑
export const updatePatientInfo = (params) =>{
    const {patientId}=params;
    return request.put(`${BASE_URL}/patient/update`, params,{
        params:{
            id:patientId
        }
    } );
}

//删除
export const patientDel = (id) =>
    request.delete(`${BASE_URL}/patient/delete`, {params:id});

//新增
export const updatePatientAdd = (params) =>
    request.post(`${BASE_URL}/patient/add`, params );
